<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>GameEngine: C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/Math/Transform.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GameEngine
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_transform_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Transform.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_transform_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Transform.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Created on: 1-dec.-2013</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *      Author: Axel</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef TRANSFORM_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TRANSFORM_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="algebra_basic_8h.html">algebraBasic.h</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_transform.html">   13</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_transform.html">Transform</a> {</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_transform.html#aa08ca4266efabc768973cdeea51945ab">   15</a></span>&#160;    <a class="code" href="class_transform.html#aa08ca4266efabc768973cdeea51945ab">Transform</a>()</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    {</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>      = <a class="code" href="class_vector3f.html">Vector3f</a>(1.0f, 1.0f, 1.0f);</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>   = <a class="code" href="class_vector3f.html">Vector3f</a>(0.0f, 0.0f, 0.0f);</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        <a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a> = <a class="code" href="class_vector3f.html">Vector3f</a>(0.0f, 0.0f, 0.0f);</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    }</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_transform.html#a0dc012c6b967d61c19ac4c47008e63e9">   22</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#a0dc012c6b967d61c19ac4c47008e63e9">Scale</a>(<span class="keywordtype">float</span> ScaleX, <span class="keywordtype">float</span> ScaleY, <span class="keywordtype">float</span> ScaleZ) {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>.<a class="code" href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">x</a> = ScaleX;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>.<a class="code" href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">y</a> = ScaleY;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>.<a class="code" href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">z</a> = ScaleZ;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    }</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_transform.html#a69076d98fe24464676683c5b3852b8bb">   28</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#a69076d98fe24464676683c5b3852b8bb">WorldPos</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> z) {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>.<a class="code" href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">x</a> = x;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>.<a class="code" href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">y</a> = y;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>.<a class="code" href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">z</a> = z;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    }</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_transform.html#a3a79d35ccd40135bcff1e13db58c7d1d">   34</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#a3a79d35ccd40135bcff1e13db58c7d1d">Rotate</a>(<span class="keywordtype">float</span> RotateX, <span class="keywordtype">float</span> RotateY, <span class="keywordtype">float</span> RotateZ) {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a>.<a class="code" href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">x</a> = RotateX;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a>.<a class="code" href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">y</a> = RotateY;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a>.<a class="code" href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">z</a> = RotateZ;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    }</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="class_transform.html#ac8bf74b3de13261afacfaca682554f86">   40</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#ac8bf74b3de13261afacfaca682554f86">SetPerspectiveProj</a>(<span class="keywordtype">float</span> <a class="code" href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">left</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">right</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a546c54dd4849722c90801e5b7381e908">top</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">bottom</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a92134dc858266ee97f728cabd12038a8">zNear</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">zFar</a>) {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.right = <a class="code" href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">right</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.left = <a class="code" href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">left</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.top = <a class="code" href="class_transform.html#a546c54dd4849722c90801e5b7381e908">top</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.bottom = <a class="code" href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">bottom</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.zNear = <a class="code" href="class_transform.html#a92134dc858266ee97f728cabd12038a8">zNear</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.zFar = <a class="code" href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">zFar</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">        m_persProj.FOV    = FOV;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">        m_persProj.Width  = Width;</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">        m_persProj.Height = Height;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">        m_persProj.zNear  = zNear;</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">        m_persProj.zFar   = zFar;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">        */</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_matrix4f.html">Matrix4f</a>* <a class="code" href="class_transform.html#a0339abe2cabfb227e28b0f118c5fe5b4">GetTrans</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="class_matrix4f.html">Matrix4f</a> <a class="code" href="class_transform.html#a1d5c79e31734280bd019ae124c008321">frustum</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="class_matrix4f.html">Matrix4f</a> <a class="code" href="class_transform.html#a24f9678d609f9b01bbec0e0043cb8f5a">perspective</a>(<span class="keywordtype">float</span> fovy, <span class="keywordtype">float</span> aspect, <span class="keywordtype">float</span> n, <span class="keywordtype">float</span> f);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="class_matrix4f.html">Matrix4f</a> <a class="code" href="class_transform.html#a03810415859e325b0bba9689948a9ed1">ortho</a>(<span class="keywordtype">float</span> <a class="code" href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">left</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">right</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">bottom</a>, <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a546c54dd4849722c90801e5b7381e908">top</a>, <span class="keywordtype">float</span> n, <span class="keywordtype">float</span> f);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#ab2d9090523f74b7e65387092896b0483">InitScaleTransform</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#a3293a2067d3c56c6605f00038f85beda">InitRotateTransform</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#a82b1f4ea9d91aecd9d863d4065cbedf5">InitTranslationTransform</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_transform.html#a8da95d8bf00a77694a5d23f988fb4eb7">InitPerspectiveProj</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">   68</a></span>&#160;    <a class="code" href="class_vector3f.html">Vector3f</a> <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">   69</a></span>&#160;    <a class="code" href="class_vector3f.html">Vector3f</a> <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">   70</a></span>&#160;    <a class="code" href="class_vector3f.html">Vector3f</a> <a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">   73</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">right</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">   74</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">left</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_transform.html#a546c54dd4849722c90801e5b7381e908">   75</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a546c54dd4849722c90801e5b7381e908">top</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">   76</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">bottom</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_transform.html#ad483522735cdaf8b1523c56eec137d0f">   77</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#ad483522735cdaf8b1523c56eec137d0f">FOV</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_transform.html#a5f41a710f6c96ea8eb7ed3c764c87de9">   78</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a5f41a710f6c96ea8eb7ed3c764c87de9">Width</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_transform.html#acfe49cabfb5a2b46340ad8cc5b01ee9d">   79</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#acfe49cabfb5a2b46340ad8cc5b01ee9d">Height</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_transform.html#a92134dc858266ee97f728cabd12038a8">   80</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a92134dc858266ee97f728cabd12038a8">zNear</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">   81</a></span>&#160;        <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">zFar</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    } <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_transform.html#a86df3739a688de7ac0d086b6fdbc0a22">   84</a></span>&#160;    <a class="code" href="class_matrix4f.html">Matrix4f</a> <a class="code" href="class_transform.html#a86df3739a688de7ac0d086b6fdbc0a22">m_transformation</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;};</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* TRANSFORM_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_transform_html_ae3bec26f145edc0f927a9ba4174f9c5e"><div class="ttname"><a href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">Transform::right</a></div><div class="ttdeci">float right</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00073">Transform.h:73</a></div></div>
<div class="ttc" id="class_transform_html_a1ab04255be9b0eebbbb31e8885b1fafe"><div class="ttname"><a href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">Transform::zFar</a></div><div class="ttdeci">float zFar</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00081">Transform.h:81</a></div></div>
<div class="ttc" id="class_transform_html_a18b8ba2e16293bd59bda40fd68db0a5f"><div class="ttname"><a href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">Transform::m_rotateInfo</a></div><div class="ttdeci">Vector3f m_rotateInfo</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00070">Transform.h:70</a></div></div>
<div class="ttc" id="class_transform_html_a35ac288d67c6416a486f9fb6e393b0cf"><div class="ttname"><a href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">Transform::left</a></div><div class="ttdeci">float left</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00074">Transform.h:74</a></div></div>
<div class="ttc" id="class_vector3f_html_a4aca0751716b7099b397e8c63b16bfcf"><div class="ttname"><a href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">Vector3f::x</a></div><div class="ttdeci">float x</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00052">algebraBasic.h:52</a></div></div>
<div class="ttc" id="class_transform_html_ab2d9090523f74b7e65387092896b0483"><div class="ttname"><a href="class_transform.html#ab2d9090523f74b7e65387092896b0483">Transform::InitScaleTransform</a></div><div class="ttdeci">void InitScaleTransform(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00043">Transform.cpp:43</a></div></div>
<div class="ttc" id="class_transform_html_a3a79d35ccd40135bcff1e13db58c7d1d"><div class="ttname"><a href="class_transform.html#a3a79d35ccd40135bcff1e13db58c7d1d">Transform::Rotate</a></div><div class="ttdeci">void Rotate(float RotateX, float RotateY, float RotateZ)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00034">Transform.h:34</a></div></div>
<div class="ttc" id="class_transform_html_a0dc012c6b967d61c19ac4c47008e63e9"><div class="ttname"><a href="class_transform.html#a0dc012c6b967d61c19ac4c47008e63e9">Transform::Scale</a></div><div class="ttdeci">void Scale(float ScaleX, float ScaleY, float ScaleZ)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00022">Transform.h:22</a></div></div>
<div class="ttc" id="class_transform_html_a03810415859e325b0bba9689948a9ed1"><div class="ttname"><a href="class_transform.html#a03810415859e325b0bba9689948a9ed1">Transform::ortho</a></div><div class="ttdeci">Matrix4f ortho(float left, float right, float bottom, float top, float n, float f)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00108">Transform.cpp:108</a></div></div>
<div class="ttc" id="class_transform_html_a9787eec78997d62f498cf262de3daf7c"><div class="ttname"><a href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">Transform::m_scale</a></div><div class="ttdeci">Vector3f m_scale</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00068">Transform.h:68</a></div></div>
<div class="ttc" id="class_transform_html_a0339abe2cabfb227e28b0f118c5fe5b4"><div class="ttname"><a href="class_transform.html#a0339abe2cabfb227e28b0f118c5fe5b4">Transform::GetTrans</a></div><div class="ttdeci">const Matrix4f * GetTrans()</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00082">Transform.cpp:82</a></div></div>
<div class="ttc" id="class_transform_html_a1d5c79e31734280bd019ae124c008321"><div class="ttname"><a href="class_transform.html#a1d5c79e31734280bd019ae124c008321">Transform::frustum</a></div><div class="ttdeci">Matrix4f frustum(Matrix4f &amp;m)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00011">Transform.cpp:11</a></div></div>
<div class="ttc" id="class_transform_html_a86df3739a688de7ac0d086b6fdbc0a22"><div class="ttname"><a href="class_transform.html#a86df3739a688de7ac0d086b6fdbc0a22">Transform::m_transformation</a></div><div class="ttdeci">Matrix4f m_transformation</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00084">Transform.h:84</a></div></div>
<div class="ttc" id="class_vector3f_html"><div class="ttname"><a href="class_vector3f.html">Vector3f</a></div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00049">algebraBasic.h:49</a></div></div>
<div class="ttc" id="class_transform_html_a8da95d8bf00a77694a5d23f988fb4eb7"><div class="ttname"><a href="class_transform.html#a8da95d8bf00a77694a5d23f988fb4eb7">Transform::InitPerspectiveProj</a></div><div class="ttdeci">void InitPerspectiveProj(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00095">Transform.cpp:95</a></div></div>
<div class="ttc" id="algebra_basic_8h_html"><div class="ttname"><a href="algebra_basic_8h.html">algebraBasic.h</a></div></div>
<div class="ttc" id="class_transform_html_a24f9678d609f9b01bbec0e0043cb8f5a"><div class="ttname"><a href="class_transform.html#a24f9678d609f9b01bbec0e0043cb8f5a">Transform::perspective</a></div><div class="ttdeci">Matrix4f perspective(float fovy, float aspect, float n, float f)</div></div>
<div class="ttc" id="class_transform_html_aaa74b28b22538f729e6be5d3924707ac"><div class="ttname"><a href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">Transform::bottom</a></div><div class="ttdeci">float bottom</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00076">Transform.h:76</a></div></div>
<div class="ttc" id="class_transform_html"><div class="ttname"><a href="class_transform.html">Transform</a></div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00013">Transform.h:13</a></div></div>
<div class="ttc" id="class_transform_html_acfe49cabfb5a2b46340ad8cc5b01ee9d"><div class="ttname"><a href="class_transform.html#acfe49cabfb5a2b46340ad8cc5b01ee9d">Transform::Height</a></div><div class="ttdeci">float Height</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00079">Transform.h:79</a></div></div>
<div class="ttc" id="class_transform_html_aa08ca4266efabc768973cdeea51945ab"><div class="ttname"><a href="class_transform.html#aa08ca4266efabc768973cdeea51945ab">Transform::Transform</a></div><div class="ttdeci">Transform()</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00015">Transform.h:15</a></div></div>
<div class="ttc" id="class_transform_html_a69076d98fe24464676683c5b3852b8bb"><div class="ttname"><a href="class_transform.html#a69076d98fe24464676683c5b3852b8bb">Transform::WorldPos</a></div><div class="ttdeci">void WorldPos(float x, float y, float z)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00028">Transform.h:28</a></div></div>
<div class="ttc" id="class_matrix4f_html"><div class="ttname"><a href="class_matrix4f.html">Matrix4f</a></div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00095">algebraBasic.h:95</a></div></div>
<div class="ttc" id="class_transform_html_a5f41a710f6c96ea8eb7ed3c764c87de9"><div class="ttname"><a href="class_transform.html#a5f41a710f6c96ea8eb7ed3c764c87de9">Transform::Width</a></div><div class="ttdeci">float Width</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00078">Transform.h:78</a></div></div>
<div class="ttc" id="class_transform_html_a92134dc858266ee97f728cabd12038a8"><div class="ttname"><a href="class_transform.html#a92134dc858266ee97f728cabd12038a8">Transform::zNear</a></div><div class="ttdeci">float zNear</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00080">Transform.h:80</a></div></div>
<div class="ttc" id="class_vector3f_html_a8a602e2ee75126feb520c2aa27e7eff5"><div class="ttname"><a href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">Vector3f::y</a></div><div class="ttdeci">float y</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00053">algebraBasic.h:53</a></div></div>
<div class="ttc" id="class_transform_html_ad483522735cdaf8b1523c56eec137d0f"><div class="ttname"><a href="class_transform.html#ad483522735cdaf8b1523c56eec137d0f">Transform::FOV</a></div><div class="ttdeci">float FOV</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00077">Transform.h:77</a></div></div>
<div class="ttc" id="class_transform_html_ac8bf74b3de13261afacfaca682554f86"><div class="ttname"><a href="class_transform.html#ac8bf74b3de13261afacfaca682554f86">Transform::SetPerspectiveProj</a></div><div class="ttdeci">void SetPerspectiveProj(float left, float right, float top, float bottom, float zNear, float zFar)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00040">Transform.h:40</a></div></div>
<div class="ttc" id="class_transform_html_a86dbbd976f558680301e05ed5e0b89c1"><div class="ttname"><a href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">Transform::m_worldPos</a></div><div class="ttdeci">Vector3f m_worldPos</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00069">Transform.h:69</a></div></div>
<div class="ttc" id="class_transform_html_a546c54dd4849722c90801e5b7381e908"><div class="ttname"><a href="class_transform.html#a546c54dd4849722c90801e5b7381e908">Transform::top</a></div><div class="ttdeci">float top</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00075">Transform.h:75</a></div></div>
<div class="ttc" id="class_transform_html_a82b1f4ea9d91aecd9d863d4065cbedf5"><div class="ttname"><a href="class_transform.html#a82b1f4ea9d91aecd9d863d4065cbedf5">Transform::InitTranslationTransform</a></div><div class="ttdeci">void InitTranslationTransform(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00075">Transform.cpp:75</a></div></div>
<div class="ttc" id="class_vector3f_html_a470cff51eb6463672be518f5af4e26db"><div class="ttname"><a href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">Vector3f::z</a></div><div class="ttdeci">float z</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00054">algebraBasic.h:54</a></div></div>
<div class="ttc" id="class_transform_html_a3293a2067d3c56c6605f00038f85beda"><div class="ttname"><a href="class_transform.html#a3293a2067d3c56c6605f00038f85beda">Transform::InitRotateTransform</a></div><div class="ttdeci">void InitRotateTransform(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00050">Transform.cpp:50</a></div></div>
<div class="ttc" id="class_transform_html_a583d5ac1c857829cfea6fb6cb77244a7"><div class="ttname"><a href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">Transform::m_persProj</a></div><div class="ttdeci">struct Transform::@1 m_persProj</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_3813464283bee2267f39dcf080a84d74.html">Math</a></li><li class="navelem"><a class="el" href="_transform_8h.html">Transform.h</a></li>
    <li class="footer">Generated on Fri Dec 13 2013 19:38:40 for GameEngine by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
